
/*!
 * 
 * dialog javascript
 * 
 */
$(function() {
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
		
		$( "#resAddDialog-form" ).dialog({
			autoOpen: false,
			height: 300,
			width: 440,
			modal: true,
			buttons: {
				"是的": function() {
					alert("设置成功！");
					$("#addForm").submit();
					$( this ).dialog( "close" );
					return false;
				},
				"算了": function() {
					$( this ).dialog( "close" );
					return false;
				}
			},
			close: function() {
			}
		});
		
		$( ".resAddDialog" ).click(function() {
			$( "#resAddDialog-form" ).dialog( "open" );
		});
});